import request from "@/utils/axios";

// 获取客户列表
export function GetCustomerList(data) {
  return request.post("/customer/page", data);
}

// 获取客户详情
export function GetCustomerDetail(params) {
  return request.get("/customer/detail", { params });
}

// 新增客户
export function AddCustomer(data) {
  return request.post("/customer/add", data);
}

// 编辑客户
export function UptateCustomer(data) {
  return request.post("/customer/update", data);
}

// 客户状态 启用/禁用
export function ChangeEnable(data) {
  return request.post("/customer/enable", data);
}
